package design.patterns.creational.simplefactory;

/**
 * @author gjx
 * @version v1.0
 * @Description 简单工程模式
 * @date 2019/3/29 9:26
 */
public class Test {
    public static void main(String[] args) {
        Computer lenovo = ComputerFactory.createComputer("apple");
        System.out.println(lenovo);
        Computer apple = ComputerFactory2.createComputer("design.patterns.creational.simplefactory.AppleComputer");
        System.out.println(apple);

    }
}
